<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>斐波那契数列</title>
</head>
<body>

<script>
    function was(n){
        if(n == 1 || n == 2){
            return 1;
        }else{
            return was(n-1) + was(n-2);
        }
    }
    console.log(was(25));
</script>


</body>
</html>